package com.woniuxy.contract.service;

import com.woniuxy.commons.entity.Contract;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-11-10 11:24
 */
public interface ContractService {

    //添加合同
    public void addContract(Contract contract);
    //根据id删除合同
    public void delectContractByid(int conid);
    //修改合同信息
    public void updateContract(@Param("contract") Contract contract);
    //通过id查询合同
    public void selectContractByConid(int conid);
    //查询所有合同
    public List<Contract> selectAllContractByPage(
            @Param("contract") Contract contract,
            @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    //合同分页的总数量
    public int selectContractCountByPage(@Param("contract") Contract contract);

}
